Optimal. Leaf size=253 \[ \frac {2 \sqrt {a+b} (C (2 a+b)+3 A b) \cot (c+d x) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (\sec (c+d x)+1)}{a-b}} F\left (\sin ^{-1}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{3 b^2 d}+\frac {4 a C (a-b) \sqrt {a+b} \cot (c+d x) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (\sec (c+d x)+1)}{a-b}} E\left (\sin ^{-1}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{3 b^3 d}+\frac {2 C \tan (c+d x) \sqrt {a+b \sec (c+d x)}}{3 b d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.32, antiderivative size = 253, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 33, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.121, Rules used = {4083, 4005, 3832, 4004} \[ \frac {2 \sqrt {a+b} (C (2 a+b)+3 A b) \cot (c+d x) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (\sec (c+d x)+1)}{a-b}} F\left (\sin ^{-1}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{3 b^2 d}+\frac {4 a C (a-b) \sqrt {a+b} \cot (c+d x) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (\sec (c+d x)+1)}{a-b}} E\left (\sin ^{-1}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{3 b^3 d}+\frac {2 C \tan (c+d x) \sqrt {a+b \sec (c+d x)}}{3 b d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3832
Rule 4004
Rule 4005
Rule 4083
Rubi steps
\begin {align*} \int \frac {\sec (c+d x) \left (A+C \sec ^2(c+d x)\right )}{\sqrt {a+b \sec (c+d x)}} \, dx &=\frac {2 C \sqrt {a+b \sec (c+d x)} \tan (c+d x)}{3 b d}+\frac {2 \int \frac {\sec (c+d x) \left (\frac {1}{2} b (3 A+C)-a C \sec (c+d x)\right )}{\sqrt {a+b \sec (c+d x)}} \, dx}{3 b}\\ &=\frac {2 C \sqrt {a+b \sec (c+d x)} \tan (c+d x)}{3 b d}-\frac {(2 a C) \int \frac {\sec (c+d x) (1+\sec (c+d x))}{\sqrt {a+b \sec (c+d x)}} \, dx}{3 b}+\frac {(3 A b+(2 a+b) C) \int \frac {\sec (c+d x)}{\sqrt {a+b \sec (c+d x)}} \, dx}{3 b}\\ &=\frac {4 a (a-b) \sqrt {a+b} C \cot (c+d x) E\left (\sin ^{-1}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (1+\sec (c+d x))}{a-b}}}{3 b^3 d}+\frac {2 \sqrt {a+b} (3 A b+(2 a+b) C) \cot (c+d x) F\left (\sin ^{-1}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (1+\sec (c+d x))}{a-b}}}{3 b^2 d}+\frac {2 C \sqrt {a+b \sec (c+d x)} \tan (c+d x)}{3 b d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 14.68, size = 409, normalized size = 1.62 \[ \frac {\cos (c+d x) (a \cos (c+d x)+b) \left (A+C \sec ^2(c+d x)\right ) \left (\frac {4 C \tan (c+d x)}{3 b}-\frac {8 a C \sin (c+d x)}{3 b^2}\right )}{d \sqrt {a+b \sec (c+d x)} (A \cos (2 c+2 d x)+A+2 C)}+\frac {8 \sqrt {\cos ^2\left (\frac {1}{2} (c+d x)\right ) \sec (c+d x)} \left (A+C \sec ^2(c+d x)\right ) \left (b (C (b-2 a)+3 A b) \sqrt {\frac {\cos (c+d x)}{\cos (c+d x)+1}} \sqrt {\frac {a \cos (c+d x)+b}{(a+b) (\cos (c+d x)+1)}} F\left (\sin ^{-1}\left (\tan \left (\frac {1}{2} (c+d x)\right )\right )|\frac {a-b}{a+b}\right )+a C \cos (c+d x) \tan \left (\frac {1}{2} (c+d x)\right ) \sec ^2\left (\frac {1}{2} (c+d x)\right ) (a \cos (c+d x)+b)+2 a C (a+b) \sqrt {\frac {\cos (c+d x)}{\cos (c+d x)+1}} \sqrt {\frac {a \cos (c+d x)+b}{(a+b) (\cos (c+d x)+1)}} E\left (\sin ^{-1}\left (\tan \left (\frac {1}{2} (c+d x)\right )\right )|\frac {a-b}{a+b}\right )\right )}{3 b^2 d \sqrt {\sec ^2\left (\frac {1}{2} (c+d x)\right )} \sec ^{\frac {3}{2}}(c+d x) \sqrt {a+b \sec (c+d x)} (A \cos (2 c+2 d x)+A+2 C)} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.49, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {C \sec \left (d x + c\right )^{3} + A \sec \left (d x + c\right )}{\sqrt {b \sec \left (d x + c\right ) + a}}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (C \sec \left (d x + c\right )^{2} + A\right )} \sec \left (d x + c\right )}{\sqrt {b \sec \left (d x + c\right ) + a}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 1.88, size = 1125, normalized size = 4.45 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (C \sec \left (d x + c\right )^{2} + A\right )} \sec \left (d x + c\right )}{\sqrt {b \sec \left (d x + c\right ) + a}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {A+\frac {C}{{\cos \left (c+d\,x\right )}^2}}{\cos \left (c+d\,x\right )\,\sqrt {a+\frac {b}{\cos \left (c+d\,x\right )}}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\left (A + C \sec ^{2}{\left (c + d x \right )}\right ) \sec {\left (c + d x \right )}}{\sqrt {a + b \sec {\left (c + d x \right )}}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________